// JavaScript Document

function page_load()
{
try{
	var sql="select * from servers where id=1";
	var dsl="	com.attilax.ioc.Ioc4agent.getBean(com.attilax.db.DbServiceV4qb9.class).execSql('$s$')";
	dsl=dsl.replace("$s$",sql);
	
		var jsbrj=new	AtiJsBridge();
	//	jsbrj.method="post";
		var para={};
		para.dsl=dsl;
		para.retFmt="json";
		jsbrj.exe(para,function(data){
			console.log(data);
			//$("#content").val(data);
			
			
			 var json=JSON.parse(data); //( data );			 	 
		  	var obj=json[0];
			$("#u").text(obj.onlineCount);
			$("#r").text(obj.roomCount);
			
		});
			//mycallJava("submitx",$("#title").val(),$("#content").val(),dropIds);
		}catch(e)
		{
			alert(e);
		}
		
}